package com.ruoyi.project.manhua.page.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 漫画篇章页数对象 mh_page
 *
 * @author yuan
 * @date 2021-01-20
 */
public class MhPage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 漫画id */
    @Excel(name = "漫画id")
    private Long nameId;

    /** 篇章 */
    @Excel(name = "篇章")
    private String chapter;

    /** 章节id */
    @Excel(name = "章节id")
    private Long chapterId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String src;

    /** 图片顺序 */
    @Excel(name = "图片顺序")
    private Integer srcOrder;



    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;


    public MhPage() {
    }

    public MhPage(Long nameId, String chapter, Long chapterId, String src, Integer srcOrder) {
        this.nameId = nameId;
        this.chapter = chapter;
        this.chapterId = chapterId;
        this.src = src;
        this.srcOrder = srcOrder;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setNameId(Long nameId)
    {
        this.nameId = nameId;
    }

    public Long getNameId()
    {
        return nameId;
    }
    public void setChapter(String chapter)
    {
        this.chapter = chapter;
    }

    public String getChapter()
    {
        return chapter;
    }
    public void setChapterId(Long chapterId)
    {
        this.chapterId = chapterId;
    }

    public Long getChapterId()
    {
        return chapterId;
    }
    public void setSrc(String src)
    {
        this.src = src;
    }

    public String getSrc()
    {
        return src;
    }
    public void setSrcOrder(Integer srcOrder)
    {
        this.srcOrder = srcOrder;
    }

    public Integer getSrcOrder()
    {
        return srcOrder;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("nameId", getNameId())
                .append("chapter", getChapter())
                .append("chapterId", getChapterId())
                .append("src", getSrc())
                .append("srcOrder", getSrcOrder())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("delFlag", getDelFlag())
                .toString();
    }
}